@extends('layout.app')
@section('content')
    <ul class="nav nav-tabs">
        <li class="active"><a href="#home" data-toggle="tab">轮播图信息</a></li>
    </ul>

    <div class="row">
        <div class="col-md-6">

            <br>
            @if(Session::has('message'))
                <li class="list-group-item list-group-item-success">{{Session::get('message')}}</li>
            @endif
            @if($errors->any())
                <ul class="list-group">
                    @foreach($errors->all() as $error)
                        <li class="list-group-item list-group-item-danger">{{$error}}</li>
                    @endforeach
                </ul>
            @endif
            <br>
            {!! Form::model($clubbanner,['method'=>'PATCH','id'=>'tab','files'=>true,'url'=>'admin/'.$modelurl.'/'.$clubbanner->id]) !!}
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane active in" id="home">
                    @foreach($formhead as $head)
                        @if($head[1]=='image_url'||$head[1]=='soft_image' )
                            {!! Form::label($head[1],$head[0].':') !!}
                            {!! Form::file($head[1],['class'=>'form-control','id'=>'image']) !!}
                            @continue
                        @endif
                        @if($head[1]=='club' )

                            @continue
                        @endif
                        @if($head[1]=='intro' )
                            @continue
                        @endif
                        <div class="form-group">
                            {!! Form::label($head[1],$head[0].':') !!}
                            {!! Form::text($head[1],null,['class'=>'form-control']) !!}
                        </div>
                    @endforeach
            </div>

            <div class="btn-toolbar list-toolbar">
                {!! Form::submit('修改',['class'=>'btn btn-primary ']) !!}
                <a href="/admin/{{$modelurl}}/" data-toggle="modal" class="btn btn-danger">返回</a>
            </div>
            {!! Form::close() !!}
        </div>
    </div>
    <script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
@stop
